var express = require('express');
var router = express.Router();
const ErrorsController = require("../controllers/ErrorsController")

//获取所有类型
router.get('/', ErrorsController.findAll)

//根据学生id查找所有
router.get('/findByStuId', ErrorsController.findByStuId)

//根据错题id删除
router.get('/deleteById', ErrorsController.deleteById)

//根据id删除错题
router.post('/deleteByArray', ErrorsController.deleteByArray)
module.exports = router